package com.xbai.user.service;

import com.github.pagehelper.PageInfo;
import com.xbai.user.pojo.UndoLog;

import java.util.List;

/**
 * @desc UndoLog业务层接口
 * @author jxbai
 * @date 2021/1/28
 */
public interface UndoLogService {

    /**
     * UndoLog条件+分页查询
     * @param undoLog {@link UndoLog}
     * @param page 页码
     * @param size 页大小
     * @return {@link PageInfo< UndoLog >} 分页结果
     */
    PageInfo<UndoLog> findPage(UndoLog undoLog, int page, int size);

    /**
     * UndoLog分页查询
     * @param page 页码
     * @param size 页大小
     * @return {@link PageInfo< UndoLog >}
     */
    PageInfo<UndoLog> findPage(int page, int size);

    /**
     * UndoLog条件查询
     * @param undoLog {@link UndoLog}
     * @return {@link List < UndoLog >}
     */
    List<UndoLog> findList(UndoLog undoLog);

    /**
     * 删除UndoLog
     * @param id 主键id
     */
    void delete(Long id);

    /**
     * 修改UndoLog数据
     * @param undoLog {@link UndoLog}
     */
    void update(UndoLog undoLog);

    /**
     * 新增UndoLog
     * @param undoLog {@link UndoLog}
     */
    void add(UndoLog undoLog);

    /**
     * 根据ID查询UndoLog
     * @param id 主键id
     * @return {@link UndoLog}
     */
     UndoLog findById(Long id);

    /**
     * 查询所有UndoLog
     * @return {@link List < UndoLog >}
     */
    List<UndoLog> findAll();
}
